package com.xiaoq.matrix.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.matrix.entity.ContentMediaEntity;
import com.xiaoq.matrix.repository.IContentMediaRepository;
import com.xiaoq.matrix.service.IContentMediaService;

@Component
public class ContentMediaServiceImpl implements IContentMediaService {
	@Autowired
	private IContentMediaRepository contentRe;

	@Override
	public ContentMediaEntity findContentMedia(String name) {
		
		return contentRe.getContentMedia(name);
	}

	@Override
	public ContentMediaEntity getContentMediaById(String id) {
		
		return contentRe.getContentMediaById(id);
	}

	@Override
	public List<ContentMediaEntity> getContentMedias() {
		return contentRe.getContentMedias();
	}

}
